package club.cearnach.api.dto;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * @author 阮胜
 * @date 2018/5/13 15:50
 */
@Data
public class PersonDTO {
    private Integer id;
    @NotBlank
    private String name;
    private String gender;
    private Integer constellation;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;
    private String profession;
    private String otherName;
    private String description;
    private Integer state;
    private Integer province;
    private Integer city;
    private Integer district;
    private String image;
    private MultipartFile imageFile;
}
